home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS26.ADF
/
Tartan
/
Tartan.DOC
< prev
next >
Wrap
Text File
|
1989-01-26
|
8KB
|
180 lines
TARTAN Program Documentation Sept. 28, 1987
Dick Taylor 99 Valley View Rd, Glastonbury, Conn 06033
PURPOSE
TARTAN is an AmigaBasic program. It is a design tool which enables the
user very easily to create original Scotch plaid ("tartan") patterns. Many
traditional tartan patterns can also be easily reproduced. You'll need
512K or more of RAM in order to run TARTAN.
HOW TO USE
The program begins with display of the TARTAN CONTROL panel. At the top of
this panel the COLOR MENU of 16 colors is displayed. These are labeled
0-15. The user creates the tartan pattern by specifying pairs of numbers.
Use 2 or more pairs. The first number of the pair tells the width of this
band of color: for example 5, meaning 5 lines wide. Typical line width
values range from 2-12. The second number of the pair tells the color
choice for this band: may use any value 0-15. Let's call each pair of
values an "item".
EXAMPLE #1
Let's generate a simple, well-known tartan to illustrate how this works.
On the fresh control screen, the first item number (1) appears in a box,
followed by a highlighted input area for "Lines". Just press key 8, and
then RETURN. Now the "Color" input area is highlighted. Press key 2 and
then RETURN. In this first item we have just asked for a black band (color
2) of 8 lines width. After this second return, the second item number (2)
appears in a box, with "Lines" input highlighted. Now press key 8, RETURN,
then key 4, RETURN. This second item specifies a red band of 8 lines
width. This ends our input for this tartan pattern. Pretty simple so far?
After the last RETURN, item #3 pops up, but we won't use it this time.
Just press RETURN again, telling the program that item input has ended.
Now a row of buttons appears toward the bottom of the panel. Use the Mouse
to move the pointer to the left-most button labeled "DISPLAY", and click
the left mouse button once. The Control panel disappears, a basic "square"
of the tartan pattern is drawn in the upper left screen corner (about 12
secs) and then the screen is filled with a bold black and red checkerboard
pattern. This familiar tartan is named "Rob Roy", for a famous (or
notorious by some accounts) member of the MacGregor clan of the Scottish
highlands, in the early 1700's. Notice that the squares of intersecting
black and red threads contain prominent diagonal lines, alternating black
and red. This illustrates the effect produced by the "twill" weaving
method of the Scottish weavers.
From the Display panel (but not from Control) a short Project Menu is
available. Use the right Mouse button to display the choices "Control" and
"Quit". Select Control to return to that panel with our first tartan input
still displayed. This input may be altered, but let's see another option
first. Move the Mouse pointer to the second screen button labeled "NEW"
and click the left Mouse button. The program re-creates the Control panel
ready to start with fresh input.
EXAMPLE #2 Enter 4 pairs of values (4 items).
Lines Color
1. 1 11 Press RETURN after
2. 8 2 entering each value for
3. 8 4 Lines and Color.
4. 1 2
When Item #5 appears, press RETURN again, then click the DISPLAY button.
We see the black and red checkerboard again, but now the black squares have
yellow lines through them and the red squares have black lines through
them. This is the traditional tartan of the Wallace clan.
EDIT OF INPUT DATA
Return to the control panel with Wallace input displayed. Next to DISPLAY
and NEW, notice 3 more screen buttons enclosed in a box and labeled "EDIT".
These are:
CHANGE -- Any of the displayed line and/or color values can be changed.
DELETE -- Any item (pair of values) can be deleted.
INSERT -- Can add a new item at any chosen point (beginning, end, or
between other items).
HOW TO CHANGE
Let's change the yellow stripe (item #1) to a green stripe. Use the mouse
pointer to click the CHANGE button. Notice the color reversed CHANGE label
to show that is active. Now use the Mouse pointer to click the box for
item #1. The Lines value (1) is highlighted; no change to this, so just
press RETURN. Now the color value (11) is highlighted. First, press
BACKSPACE twice to remove 11, then enter 8 (for green) and press RETURN.
At this point the CHANGE label is restored to normal color, and more
Changes (or Deletes or Inserts) could be done. For now, just click in
DISPLAY to show the changed design color.
HOW TO DELETE
Let's try eliminating that black line through the red squares. Back on the
Control panel, click on the DELETE button, note reversed label color. Then
click in the box for item #4, which goes away, and label color back to
normal. Display as usual.
HOW TO INSERT
Let's put back a wider white stripe through the red squares. Back on
Control, click on the INSERT button, note color reversal, then click on the
box for item #3. Always click the button just BEFORE the point of insertion
(that's why we have a box #0). Item #4 pops up; enter values 2 and 1 (lines
& color respectively) and display. Are you getting the hang of it?
When inserting an item which is not last, the items following the clicked
item are moved up by one, and an empty item ready for input appears.
TYPING MISTAKES
On typing input, if you make a mistake and haven't pressed RETURN yet, you
can always BACKSPACE and correct. If you press RETURN and then find the
mistake, just finish the rest of the input, then use CHANGE to fix the
mistake.
BACKGROUND
First, some weaving terminology: On a weaver's loom, the "warp" threads
run front to back (y axis on the screen), and "weft" threads (or "woof")
run side to side (x axis on screen).
On the Wallace tartan, if you compared your 4 input items with the
displayed pattern, you may have noticed that your input doesn't really
spell out the full design pattern. Something has been added! What happens
is this: Your input is doubled to make a total of 8 items, but items 5-8
are the same as 1-4 in reverse order (also called mirror image). The
program handles this step automatically. Then this set of instructions (or
"sett" in traditional Scottish weaving terminology) is applied to both warp
and weft. It may be of interest to note that there are a few of the
traditional tartans which do not have this bi-directional symmetry. These
cannot be reproduced with the present TARTAN program. Another program
limitation: This program can process a maximum of 20 items for one tartan.
This is not a serious limitation, since most traditional tartans can be
specified with 5-15 items.
Please be aware that input specifying a large total of lines can run into
a RAM limitation situation. On a 512K machine, I have found that a total
lines greater than 52 causes the Out of Memory error when attempting to
fill the screen from the basic "square". So for total lines greater than
52, the program just draws the basic "square", no screen fill. Of course,
this is quite a large square, about 1/2 the screen width.
FAMOUS TARTANS
Many tartans fall into 2 broad groups: 1) Bright colors, lots of scarlet,
used for dress and ceremonial occasions. 2) Somber colors, very dark green,
blue, black, used for hunting or everyday wear.
Royal Stewart -- one of the bright tartans, also widely popular today
This is the tartan of Britain's royal family.
1. 1 1 4. 4 4 7. 2 2 10. 3 0
2. 3 4 5. 6 10 8. 2 11 11. 14 4
3. 2 2 6. 2 1 9. 4 2
Hunting MacLean -- one of the "working" tartans.
1. 2 10 4. 4 2 7. 16 10
2. 4 2 5. 3 10 8. 2 2
3. 2 1 6. 3 2
Culloden -- Bonnie Prince Charlie led the Scotch clans in the final
uprising in 1745, culminating in his defeat by the English on Culloden
moor. This tartan was worn at that battle.
1. 2 4 4. 2 1 7. 2 2
2. 2 10 5. 12 2 8. 2 11
3. 12 13 6. 12 11
Many more traditional tartans could be listed, but the real fun is in
designing your own, so go to it!
REFERENCES
1. Grimble "Scottish Clans & Tartans", Publ. Hamlyn 1973
2. Hesketh "Tartans", Publ. Octopus 1972